using System;
using System.Collections.Generic;
using System.Text;

using Circo.Essentials.Persistence.Filters;

namespace Circo.Essentials.BusinessLogic.Views.Filters
{
    public class ViewCommonFilter : ViewFilter
    {
        #region Constructores

        public ViewCommonFilter()
        {
        }

        public ViewCommonFilter(string propertyName, object value)
        {
            this.PropertyName = propertyName;
            this.Value = value;
        }
        
        #endregion Constructores

        private object _value;

        public object Value
        {
            get { return _value; }
            set { _value = value; }
        }


        public override EntityFilter MapToEntity()
        {
            return (new CommonFilter(this.PropertyName, this.Value));
        }

    }
}
